/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.upla.lamerced;

import java.io.File;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
import pe.edu.upla.lamerced.desk.view.Login;

/**
 *
 * @author elvis
 */
public class Inicial {

   private static XmlBeanFactory factory;
   public static XmlBeanFactory getFactory() {
      return factory;
   }
   public static void setFactory(XmlBeanFactory aFactory) {
      factory = aFactory;
   }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
           System.out.println("en el main ");
           String ruta = new File("resources").getAbsolutePath();
           File f = new File(ruta+"/applicationContext.xml");
           factory = new XmlBeanFactory(new FileSystemResource(f));
            System.out.println("LOGIN");
           Login login = new Login();
           login.setBounds(0, 0, 400, 250);
           login.setVisible(true);
        } catch (Exception e) {
            e.printStackTrace();
        }
       
    }
    
}
